/*
 *Copyright © 2015 zhaorongbao
 *招融宝
 *http://zhaorongbao.com
 *All rights reserved.
 */
package com.hanhai.zrb.api.biz.service;

import com.hanhai.common.result.ValidateCodeSendResult;
import com.hanhai.zrb.model.common.ValidateCodeSend;

public interface ValidateCodeSendService {

	/**
	 * 创建校验码并发消息
	 */
	public ValidateCodeSendResult createAndSendCheckCode(
			ValidateCodeSend validateCodeSend);

	/**
	 * 校验验证码
	 */
	public ValidateCodeSendResult check(ValidateCodeSend validateCodeSend,
			String code);
	
	public String createExtralCacheCode(String identity);
	
	public boolean checkExtralCacheCode(String identity,String code);
}
